﻿import request from '@/utils/request'

// 查询商品分类与品牌关联列表
export function listBrand(query) {
    return request({
        url: '/system/brand/list',
        method: 'get',
        params: query
    })
}

// 查询商品分类与品牌关联详细
export function getBrand(categoryId) {
    return request({
        url: '/system/brand/' + categoryId,
        method: 'get'
    })
}

// 新增商品分类与品牌关联
export function addBrand(data) {
    return request({
        url: '/system/brand',
        method: 'post',
        data: data
    })
}

// 修改商品分类与品牌关联
export function updateBrand(data) {
    return request({
        url: '/system/brand',
        method: 'put',
        data: data
    })
}

// 删除商品分类与品牌关联
export function delBrand(categoryId) {
    return request({
        url: '/system/brand/' + categoryId,
        method: 'delete'
    })
}